package com.yoku.view.mq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Desc:
 * Author: <a href="xiahj@terminus.io">xiahj</a>
 * Date: 2016/12/13
 */

@Component
public class DemoReceiver implements MqReceiver {

    @Override
    @RabbitListener(queues = {"my-queue"})
    public void doReceive(String message) {
        System.out.println(message);
    }
}
